package com.fanghuaiming.ml.pay.order.spi;

import com.fanghuaiming.ml.common.model.common.order.MessageListOrderDTO;
import com.fanghuaiming.ml.common.model.enumeration.OrderTransactionEnum;
import com.fanghuaiming.ml.pay.order.spi.fallback.MessageListOrderFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/****
 * @description: 订单微服务SPI
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 下午5:19
 *
 */
@FeignClient(name = "base-message-list-cloud-order",fallback = MessageListOrderFeignClientFallBack.class)
public interface MessageListOrderFeignClient {

    /**
     * @Description: 订单微服务处理订单
     *
     * @param:
     * @return:
     * @auther: fanghuaiming
     * @date: 2020/12/4 下午3:56
     * @version:1.0.0
     */
    @PostMapping("/order/dealOrder")
    OrderTransactionEnum dealOrder( MessageListOrderDTO messageListOrderDTO);
}
